import {QueryFiledUtil} from '@/utils'
import {DictOptions} from "@/libs/options";

export const APP_SEARCH = [
    QueryFiledUtil.setInputField('name', '程序名称'),
    QueryFiledUtil.setInputField('beanName', 'BEAN名称'),
    QueryFiledUtil.setInputField('methodName', '方法名称'),
    QueryFiledUtil.setDictUrlField('parameterType', '方法类型',DictOptions.AppParameterType),
]

export const TASK_SEARCH = [
    QueryFiledUtil.setInputField('title', '任务名称'),
    QueryFiledUtil.setDictUrlField('state', '运行状态', DictOptions.TaskState),
    QueryFiledUtil.setInputField('remark', '备注说明'),
]

export const RECORD_SEARCH = [
    QueryFiledUtil.setInputField('name', '程序名称'),
    QueryFiledUtil.setInputField('beanName', 'BEAN名称'),
    QueryFiledUtil.setInputField('methodName', '方法名称'),
    QueryFiledUtil.setDictUrlField('parameterType', '方法类型',DictOptions.TaskRunMode),
]

